package org.mall.common.constant;

/***
 *@author yinxucun
 *@date 2019-11-19 12:57 
 */
public enum OrderAction {

    /**
     * 创建订单
     *
     * */
    CREATE("创建",10),
    CANCEL("取消",20),
    PAY("支付",30),
    CANCEL_AFTER_PAY("支付成功后取消",40),
    PRODUCE("消费",50),
    COMPLETE("完成",60),
    WAIT_REFUND("退款",70),
    ;
    private String name;
    private Integer code;

    OrderAction(String name, Integer code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public Integer getCode() {
        return code;
    }
}
